summaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r--.config/nvim/init.vim70
1 files changed, 64 insertions, 6 deletions
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