| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 | " Be IMprovedif &compatible  set nocompatibleendif" set leader keylet g:mapleader="\\"" alias for leader keynmap <space> \xmap <space> \syntax enable                           " Enables syntax highlighingset nowrap                              " display long lines as just one lineset encoding=utf-8                      " The encoding displayed set fileencoding=utf-8                  " The encoding written to fileset ruler              					" show the cursor position all the timeset iskeyword+=-                      	" treat dash separated words as a word text object"set mouse=a                             " Enable your mouseset splitbelow                          " Horizontal splits will automatically be belowset splitright                          " Vertical splits will automatically be to the rightset t_Co=256                            " Support 256 colorsset autochdir                           " Your working directory will always be the same as your working directoryset tabstop=4                           " Insert 4 spaces for a tabset shiftwidth=4                        " Change the number of space characters inserted for indentationset smarttab                            " Makes tabbing smarter will realize you have 2 vs 4set expandtab                           " Converts tabs to spacesset smartindent                         " Makes indenting smartset autoindent                          " Good auto indentset laststatus=2                        " Always display the status lineset number                              " Line numbersset cursorline                          " Enable highlighting of the current lineset background=dark                     " tell vim what the background color looks likelet g:python_highlight_all = 0          " Get rid of annoying red highlights"let g:elite_mode=1                      " Disable arrows"" Disable arrow movement, resize splits instead.if get(g:, 'elite_mode')    nnoremap <Up>    :resize -2<CR>    nnoremap <Down>  :resize +2<CR>    nnoremap <Left>  :vertical resize -2<CR>    nnoremap <Right> :vertical resize +2<CR>endif" Gives vim abilty to recognize filetypesfiletype plugin indent on                 " Alternate way to savennoremap <C-s> :w<CR>" Alternate way to quitnnoremap <C-Q> :wq!<CR>" Use control-c instead of escapennoremap <C-c> <Esc>" <TAB>: completion.inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"" Open terminal with F1nnoremap <silent> <F1> :10split term://bash<CR>" insert mode for terminalautocmd BufWinEnter,WinEnter term://* startinsertautocmd BufLeave term://* stopinsert" Toggle tagbarnnoremap <silent> <F2> :TagbarToggle<CR>" Toggle Line numbersnnoremap <silent> <F4> :set nonumber!<CR>" Toggle NERDTreennoremap <silent> <F5> :NERDTreeToggle<CR>" Startifynnoremap <silent> <F6> :Startify<CR>" Get rid of highlights after searchnnoremap <silent> <F7> :nohlsearch<CR><F7>" Toggle open buffersnnoremap <silent> <F8> :BuffergatorToggle<CR>" For fuzzy finder""nnoremap <silent> <F9> :Files<CR>" F10 split verticalnnoremap <silent> <F9> :vsplit<CR>" F11 split horizontalnnoremap <silent> <F10> :split<CR>" Make current buffer only buffernnoremap <silent> <F12> :only<CR>" Remap window switch" Switch to rename for LSP to do add leader""nnoremap <F4> :SearchTasks *<CR>nnoremap <silent> <leader>n :NERDTreeToggle<return>nnoremap <silent> <leader>m :TagbarToggle<return>nnoremap <silent> <leader>l :set nonumber!<return>nnoremap <silent> <leader>s :Startify<return>nnoremap <silent> <leader>w :w<return>nnoremap <silent> <leader>b :<return>nnoremap <silent> <leader>p :pclose<return>" Split edit your vimrc. Type space, v, r in sequence to trigger    fun! OpenConfigFile(file)      if (&filetype ==? 'startify')        execute 'e ' . a:file      else        execute 'tabe ' . a:file      endif    endfunnnoremap <silent> <leader>in :call OpenConfigFile('~/.config/nvim/init.vim')<cr>nnoremap <C-h> <C-w>hnnoremap <C-j> <C-w>jnnoremap <C-k> <C-w>knnoremap <C-l> <C-w>l" Remap terminal switchtnoremap <C-[> <C-\><C-n>tnoremap <C-c><Esc> <Esc>tnoremap <C-h> <C-\><C-n><C-w>htnoremap <C-j> <C-\><C-n><C-w>jtnoremap <C-k> <C-\><C-n><C-w>ktnoremap <C-l> <C-\><C-n><C-w>l" TAB in general mode will move to text buffernnoremap <TAB> :bnext<CR>" SHIFT-TAB will go backnnoremap <S-TAB> :bprevious<CR>
 |