{# symlink{~/.config/nvim/init.vim} #} set nocompatible set mouse=a syntax enable filetype plugin on filetype plugin indent on " show existing tab with 4 spaces width set tabstop=4 " when indenting with '>', use 4 spaces width set shiftwidth=4 " On pressing tab, insert 4 spaces set expandtab " Recursive file search with `:find` set path+=** " Tab completion on file searches set wildmenu " Show commands I run set showcmd " (nvim) Yank/paste uses clipboard set clipboard=unnamedplus " Set linenumbers set number " Cursorline (highlights of current line) hi CursorLine cterm=NONE ctermbg=0 set cursorline " Search settings set ignorecase " Ignore case set smartcase " Unless I specify a capital " command! MakeTags !ctags -R . " Write as sudo *using custom script due to https://github.com/neovim/neovim/issues/1716* " Update this as soon as tty support is built in command! W w !~/bin/rofisudo tee % " Allow alt-moving lines up and down nnoremap :m -2 nnoremap :m +1 inoremap :m -2i inoremap :m +1i vnoremap :m-2gv=gv vnoremap :m'>+gv=gv " Show invisible characters set list set listchars=tab:▸·,trail:·,eol:⏎,space:␣ " FILE BROWSING: let g:netrw_banner=0 " Disable annoying banner let g:netrw_browse_split=4 " Open in prior window let g:netrw_altv=1 " Open splits to the right let g:netrw_liststyle=3 " Tree view " Statusline things set laststatus=2 set statusline= set statusline+=%#PmenuSel# set statusline+=\ %f set statusline+=%= set statusline+=\ %y set statusline+=\ %{&fileencoding?&fileencoding:&encoding} set statusline+=\[%{&fileformat}\] set statusline+=\ %p%% set statusline+=\ %l:%c set statusline+=\ " Plugins " auto-install vim-plug if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim endif call plug#begin() Plug 'arcticicestudio/nord-vim' call plug#end() colorscheme nord