Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " set leader key
- let g:mapleader = "\<Space>"
- " Optional:
- "set foldmethod=indent
- set cursorline
- set autoindent
- set background=dark
- set tabstop=2
- "set columns=120
- "set lines=50
- colorscheme desert
- set shiftwidth=2
- "set list listchars=tab:❘-,trail:·,extends:»,precedes:«,nbsp:×
- "set list listchars=tab:»-,trail:·,extends:»,precedes:«
- "set listchars=tab:\.\
- "set list
- syntax on
- set nu
- if has("autocmd")
- au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
- endif
- so ~/.config/nvim/plugins.vim
- set guifont=Monospace\ 9
- set clipboard=unnamedplus
- tnoremap <Esc> <C-\><C-n>
- au BufNewFile,BufRead *.{c,cpp,cu,pov,m} :vmap cc :s/^/\/\/ <CR> :noh <CR>
- "map <F9> :w<CR>:!clear;python3 %; read<CR>"
- autocmd FileType python map <buffer> <F9> :w<CR>:exec '! python3' shellescape(@%, 1)<CR>
- autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '! python3' shellescape(@%, 1)<CR>
- cmap w!! w !sudo tee %
- "save with ctrl+s
- nmap <c-s> :w<CR>
- imap <c-s> <Esc>:w<CR>a
- "exit with ctrl+q
- nmap <c-q> :q<CR>
- imap <c-q> <Esc>:q<CR>
- " moverse entre tabs
- nnoremap <C-Left> gT
- nnoremap <C-Right> gt
- nnoremap <buffer> H :<C-u>execute "!pydoc3 " . expand("<cword>")<CR>
- "-----------------------------------------------------------------------
- "----------------------------------------------------------------Minimap
- " Para poder usar minimap debe instalar code-minimap
- " (https://github.com/wfxr/code-minimap/), esto se hace a traves de cargo,
- " para instalar cargo ejecute en la terminal:
- " curl https://sh.rustup.rs -sSf | sh
- " Esto descargará un script e iniciará la instalación.
- " Si todo va bien, veras esto:
- " Rust is installed now. Great!
- " Ahora podra instalar code-minimap ejecutando en la terminal:
- " cargo install --locked code-minimap
- " Deshabilitar el minimapa para tipos de archivos específicos
- let g:minimap_block_filetypes = ['fugitive', 'nerdtree', 'tagbar']
- " Deshabilitar el minimapa para tipos de buffers específicos
- let g:minimap_block_buftypes = ['nofile', 'nowrite', 'quickfix', 'terminal', 'prompt', 'fzf', 'pymode']
- " Cerrar minimapa para tipos de archivos especificos
- let g:minimap_close_filetypes = ['starify', 'netrw', 'vim-plug', 'vim-blunde']
- " Resaltar el rango de lineas visibles
- let g:minimap_highlight_range = 1
- " Atajos de teclado
- " Abrir/Cerrar Minimap
- nnoremap <leader>m :MinimapToggle<CR>
- " Cerrar Minimap
- nnoremap <leader>mq :MinimapClose<CR>
- " Refrescar Minimap
- nnoremap <leader>mr :MinimapRefresh<CR>
- " enable mouse interaction
- set mouse=a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement