configFiles

My stuff random config files I wanted to save somewhere
git clone git://git.thepablogq.xyz/configFiles
Log | Files | Refs

vimrc (1908B)


      1 set tabstop=4
      2 set softtabstop=0 noexpandtab
      3 set shiftwidth=4
      4 set expandtab
      5 set smartindent
      6 set mouse=a
      7 set relativenumber
      8 set number
      9 set noerrorbells
     10 set undodir=~/.vim/undodir
     11 set undofile
     12 set incsearch
     13 
     14 call plug#begin('~/.vim/plugged')
     15  
     16 Plug 'jremmen/vim-ripgrep'
     17 Plug 'kien/ctrlp.vim'
     18 Plug 'scrooloose/syntastic'
     19 Plug 'morhetz/gruvbox'
     20 Plug 'vim-utils/vim-man'
     21 Plug 'leafgarland/typescript-vim'
     22 Plug 'tpope/vim-fugitive'
     23 Plug 'mbbill/undotree'
     24 Plug 'Shougo/neocomplete.vim'
     25 Plug 'Shougo/neosnippet.vim'
     26 Plug 'Shougo/neosnippet-snippets'
     27 Plug 'vim-airline/vim-airline'
     28 Plug 'vim-airline/vim-airline-themes'
     29 call plug#end()
     30 
     31 colorscheme gruvbox
     32 set cursorline
     33 syntax enable
     34 set background=dark
     35 
     36 let g:airline#extensions#tabline#enabled=1
     37 let g:airline#extensions#tabline#buffer_nr_show=1
     38 set laststatus=2
     39 set noshowmode
     40 set timeoutlen=50
     41 
     42 let g:airline_theme='gruvbox'
     43 
     44 "Buttons for going to previous/next file (buffer)
     45 map <F2> :bprevious<CR>
     46 map <F3> :bnext<CR>
     47 "Show a list of files (buffers) that are open
     48 map <F4> :buffers<CR>
     49 "Yank (copy) contents of current file (buffer) - also to X11 clipboard
     50 map <F5> :y+<CR>
     51 "Show name of file and path relative to current working directory
     52 map <F6> :echo @%<CR>
     53 "Show current working directory
     54 map <F7> :pwd<CR>
     55 "Close current buffer
     56 map <F12> :bd!<CR>
     57 
     58 
     59 let g:neocomplete#enable_at_startup = 1
     60 imap <C-k>     <Plug>(neosnippet_expand_or_jump)
     61 smap <C-k>     <Plug>(neosnippet_expand_or_jump)
     62 xmap <C-k>     <Plug>(neosnippet_expand_target)
     63 imap <expr><TAB>
     64  \ pumvisible() ? "\<C-n>" :
     65  \ neosnippet#expandable_or_jumpable() ?
     66  \    "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
     67 inoremap <expr><C-h> pumvisible() ? "\<C-y>" : "\<C-h>"
     68 
     69 nnoremap <C-J> <C-W><C-J>
     70 nnoremap <C-K> <C-W><C-K>
     71 nnoremap <C-L> <C-W><C-L>
     72 nnoremap <C-H> <C-W><C-H>
     73 
     74 nnoremap <C-Down> <C-W><C-J>
     75 nnoremap <C-Up> <C-W><C-K>
     76 nnoremap <C-Right> <C-W><C-L>
     77 nnoremap <C-Left> <C-W><C-H>