commit 4bb4f0b71e860b89f37424c0d3bcca1b5d29bc4c Author: Pablo Garro <pablopaulgq@gmail.com> Date: Sat, 30 Jan 2021 02:58:22 -0600 Commit #1 only VIM Diffstat:
A | vimrc | | | 77 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 77 insertions(+), 0 deletions(-)
diff --git a/vimrc b/vimrc @@ -0,0 +1,77 @@ +set tabstop=4 +set softtabstop=0 noexpandtab +set shiftwidth=4 +set expandtab +set smartindent +set mouse=a +set relativenumber +set number +set noerrorbells +set undodir=~/.vim/undodir +set undofile +set incsearch + +call plug#begin('~/.vim/plugged') + +Plug 'jremmen/vim-ripgrep' +Plug 'kien/ctrlp.vim' +Plug 'scrooloose/syntastic' +Plug 'morhetz/gruvbox' +Plug 'vim-utils/vim-man' +Plug 'leafgarland/typescript-vim' +Plug 'tpope/vim-fugitive' +Plug 'mbbill/undotree' +Plug 'Shougo/neocomplete.vim' +Plug 'Shougo/neosnippet.vim' +Plug 'Shougo/neosnippet-snippets' +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' +call plug#end() + +colorscheme gruvbox +set cursorline +syntax enable +set background=dark + +let g:airline#extensions#tabline#enabled=1 +let g:airline#extensions#tabline#buffer_nr_show=1 +set laststatus=2 +set noshowmode +set timeoutlen=50 + +let g:airline_theme='gruvbox' + +"Buttons for going to previous/next file (buffer) +map <F2> :bprevious<CR> +map <F3> :bnext<CR> +"Show a list of files (buffers) that are open +map <F4> :buffers<CR> +"Yank (copy) contents of current file (buffer) - also to X11 clipboard +map <F5> :y+<CR> +"Show name of file and path relative to current working directory +map <F6> :echo @%<CR> +"Show current working directory +map <F7> :pwd<CR> +"Close current buffer +map <F12> :bd!<CR> + + +let g:neocomplete#enable_at_startup = 1 +imap <C-k> <Plug>(neosnippet_expand_or_jump) +smap <C-k> <Plug>(neosnippet_expand_or_jump) +xmap <C-k> <Plug>(neosnippet_expand_target) +imap <expr><TAB> + \ pumvisible() ? "\<C-n>" : + \ neosnippet#expandable_or_jumpable() ? + \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" +inoremap <expr><C-h> pumvisible() ? "\<C-y>" : "\<C-h>" + +nnoremap <C-J> <C-W><C-J> +nnoremap <C-K> <C-W><C-K> +nnoremap <C-L> <C-W><C-L> +nnoremap <C-H> <C-W><C-H> + +nnoremap <C-Down> <C-W><C-J> +nnoremap <C-Up> <C-W><C-K> +nnoremap <C-Right> <C-W><C-L> +nnoremap <C-Left> <C-W><C-H>