Created
February 6, 2021 16:01
-
-
Save spxwnmc/c586de8e37e1e2bd44392ac6441c3540 to your computer and use it in GitHub Desktop.
My shortcuts in Neovim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" => Leader nos permite hacer comandos con el espacio | |
let mapleader=" " | |
"Abrir ventaba horizontalmente | |
nmap <Leader>oj :split<CR> | |
"Abrir ventana verticalmente | |
nmap <Leader>ol :vsplit<CR> | |
"Guardar | |
nmap <Leader>w :w<CR> | |
"Salir | |
nmap <Leader>q :q<CR> | |
"Recargar configuracion | |
nmap <Leader>rr :source %:p<CR> | |
"Nueva pestaña | |
nmap <Leader>ot :tabe | |
"Cerrar pestaña | |
nmap <Leader>ct :tabc<CR> | |
" =========> PLUGINS | |
" => FZF | |
"Busca archivos mediante FZF | |
map ; :Files<CR> | |
" Search lines | |
nmap <Leader>l :Lines<CR> | |
" List of buffers opened | |
nmap <Leader>ob :Buffers<CR> | |
" => easymotion | |
"Ejecuta el plugin easymotion | |
nmap <Leader>s <Plug>(easymotion-s2) | |
" => NERDTree | |
nmap <Leader>nt :NERDTree<CR> | |
map <c-n> :NERDTreeToggle<cr> | |
" => FloatTerm | |
nmap <Leader>t :FloatermNew --height=0.5 --width=0.6 --wintype=float --name=floaterm1 --autoclose=2<CR> | |
" => multiterm | |
" modo normal | |
nmap <F12> <Plug>(Multiterm) | |
" modo terminal | |
tmap <F12> <Plug>(Multiterm) | |
" modo insertar | |
imap <F12> <Plug>(Multiterm) | |
" modo visual | |
xmap <F12> <Plug>(Multiterm) | |
" => open sesion with tmux | |
nmap <Leader>os :Multiterm! tmux attach -t 0<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment