From 0eea54481754f2d8574202a4cd76ac9dcac8bf9f Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Mon, 19 Oct 2020 17:03:14 +0100 Subject: Addtional nvim configuration --- .config/git/gitignore_global | 2 ++ .config/nvim/init.vim | 70 ++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 66 insertions(+), 6 deletions(-) diff --git a/.config/git/gitignore_global b/.config/git/gitignore_global index 9761892..b7fe62b 100644 --- a/.config/git/gitignore_global +++ b/.config/git/gitignore_global @@ -3,3 +3,5 @@ .local/src/dwm/ .local/src/st/ .ssh +.notes.md +notes.md diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 6705496..3c6e9a6 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,22 +1,80 @@ -filetype on -filetype plugin on -filetype indent on " file type based indentation +""""""" +" VIM " +""""""" set nobackup set nowb set noswapfile +"""""""""" +" UI " +"""""""""" + colorscheme railscasts -syntax on " syntax highlighting on +" Syntax highlighting on. +syntax on + +" Turn on line numbers. +set number + +filetype on + +filetype plugin on + +" Load filetype-specific indent files. +filetype indent on + +:set wrap linebreak nolist + +" Highlight matching [{()}] +set showmatch + +" Open new split panes to right and bottom. +set splitright +set splitbelow + +""""""""""""""""" +" SPACES & TABS " +""""""""""""""""" + +" Number of visual spaces per tab. set tabstop=2 + +" Number of spaces in tab when editing. set softtabstop=2 + +" Number of spaces that text is shifted when using << and >>. set shiftwidth=2 + +" Tabs are spaces. set expandtab -set number " turn on line numbers +""""""""""""""""" +" FINDING FILES " +""""""""""""""""" -:set wrap linebreak nolist +" Search down into subfolders. +set path+=** + +" Ignore these directories when finding. +set wildignore+=**/.git/** +set wildignore+=**/node_modules/** +set wildignore+=**/vendor/** + +" Display all matching files when we tab complete. +set wildmenu + +""""""""""""""" +" TAG JUMPING " +""""""""""""""" + +" Creates the 'tags' file. +command! MakeTags !ctags -R --exclude@.ctagsignore . + +"""""""" +" MISC " +"""""""" " Shortcuts provided by http://vimcasts.org -- cgit v1.2.3-13-gbd6f