From f3d34eed3f3054e1ff1bbb8424d2344393add335 Mon Sep 17 00:00:00 2001 From: dx Date: Tue, 12 May 2020 22:05:35 +0100 Subject: +neovim config As I'm now going to be using neovim as my editor, here's a config for it --- NeoVim/.config/nvim/init.vim | 105 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 NeoVim/.config/nvim/init.vim (limited to 'NeoVim/.config/nvim') 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 + "" General keybind +nnoremap fp :e ~/.confing +nnoremap fei :e ~/.vim/ftplugin +nnoremap fr :so ~/.vimrc:PluginInstall:PluginClean +nnoremap qq :q! +nnoremap gs :G +nnoremap : + + "" File Management +nnoremap ff :e +nnoremap fs :w +nnoremap fq :wq +nnoremap fn :enew +nnoremap :set hlsearch! hlsearch? + + "" Buffer Management +nnoremap bb :b +nnoremap bn :bn +nnoremap bp :bp +nnoremap bd :bd + + "" Search +nnoremap ss / + + "" Window Splits +nnoremap wv v +nnoremap ws s +nnoremap wd q + + "" Window Resizes +nnoremap wj :resize -5 +nnoremap wk :resize +5 +nnoremap wl 5> +nnoremap wh 5< + + "" Window Movement +nnoremap j +nnoremap k +nnoremap l +nnoremap h + + "" Projects +nnoremap ot :NERDTreeToggle +nnoremap pg :!ctags-exuberant -R --exclude=Makefile . + + "" Tags +nnoremap tt :Tags -- cgit v1.2.3-13-gbd6f