diff options
author | dx <aryadevchavali1@gmail.com> | 2020-05-12 22:05:35 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-12 22:05:45 +0100 |
commit | f3d34eed3f3054e1ff1bbb8424d2344393add335 (patch) | |
tree | bedbdb4f915d71f22dac67be190b157c971f5fc8 /NeoVim/.config | |
parent | 6885c76c37e3ec0f99f69d992fbaba118c507848 (diff) | |
download | dotfiles-f3d34eed3f3054e1ff1bbb8424d2344393add335.tar.gz dotfiles-f3d34eed3f3054e1ff1bbb8424d2344393add335.tar.bz2 dotfiles-f3d34eed3f3054e1ff1bbb8424d2344393add335.zip |
+neovim config
As I'm now going to be using neovim as my editor, here's a config for it
Diffstat (limited to 'NeoVim/.config')
-rw-r--r-- | NeoVim/.config/nvim/init.vim | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/NeoVim/.config/nvim/init.vim b/NeoVim/.config/nvim/init.vim new file mode 100644 index 0000000..055213e --- /dev/null +++ b/NeoVim/.config/nvim/init.vim @@ -0,0 +1,105 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath = &runtimepath +filetype off + +"" Plugins +set rtp+=~/.vim/bundle/Vundle.vim + +call vundle#begin() + "" Core +Plugin 'gmarik/Vundle.vim' +Plugin 'tpope/vim-dispatch' +Plugin 'christoomey/vim-tmux-navigator' + + "" UI +Plugin 'scrooloose/nerdtree' + + "" Plugins +Plugin 'godlygeek/tabular' +Plugin 'tpope/vim-commentary' +Plugin 'tpope/vim-fugitive' +Plugin 'tpope/vim-surround' +call vundle#end() + + +"" Standard variables +syntax enable +filetype plugin indent on +set nocompatible +set ignorecase +set smartcase +set clipboard=unnamed +set number +set nobackup +set noundofile +set nowritebackup +set nohlsearch +set wildmenu +set tabstop=4 +set softtabstop=4 +set expandtab +set shiftwidth=4 +set previewheight=5 +set foldmethod=syntax +set foldlevel=99 +set path+=** +let mapleader = ' ' + + +"" Theming +colorscheme elflord + + +"" Dir Config +let g:NERDTreeHijackNetrw = 1 + + +"" Keybinds +imap jk <Esc> + "" General keybind +nnoremap <leader>fp :e ~/.confing<CR> +nnoremap <leader>fei :e ~/.vim/ftplugin<CR> +nnoremap <leader>fr :so ~/.vimrc<CR>:PluginInstall<CR>:PluginClean<CR> +nnoremap <leader>qq :q!<CR> +nnoremap <leader>gs :G<CR> +nnoremap <leader><leader> : + + "" File Management +nnoremap <leader>ff :e +nnoremap <leader>fs :w<CR> +nnoremap <leader>fq :wq<CR> +nnoremap <leader>fn :enew<CR> +nnoremap <F8> :set hlsearch! hlsearch?<CR> + + "" Buffer Management +nnoremap <leader>bb :b +nnoremap <leader>bn :bn <CR> +nnoremap <leader>bp :bp <CR> +nnoremap <leader>bd :bd <CR> + + "" Search +nnoremap <leader>ss / + + "" Window Splits +nnoremap <leader>wv <C-W>v +nnoremap <leader>ws <C-W>s +nnoremap <leader>wd <C-W>q + + "" Window Resizes +nnoremap <leader>wj :resize -5<CR> +nnoremap <leader>wk :resize +5<CR> +nnoremap <leader>wl <C-W>5> +nnoremap <leader>wh <C-W>5< + + "" Window Movement +nnoremap <leader>j <C-W><C-J> +nnoremap <leader>k <C-W><C-K> +nnoremap <leader>l <C-W><C-L> +nnoremap <leader>h <C-W><C-H> + + "" Projects +nnoremap <leader>ot :NERDTreeToggle<CR> +nnoremap <leader>pg :!ctags-exuberant -R --exclude=Makefile . + + "" Tags +nnoremap <leader>tt :Tags<CR> |