clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

some optimizations

sspaeti ee6acd01 318c7371

+30 -8
+30 -8
nvim/init.vim
··· 1 - "set runtimepath^=~/.vim runtimepath+=~/.vim/after 2 - "let &packpath=&runtimepath 3 - "source ~/.vimrc 1 + "Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. 2 + "If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support 3 + "(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) 4 + if (empty($TMUX)) 5 + if (has("nvim")) 6 + "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > 7 + let $NVIM_TUI_ENABLE_TRUE_COLOR=1 8 + endif 9 + "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > 10 + "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > 11 + " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > 12 + if (has("termguicolors")) 13 + set termguicolors 14 + endif 15 + endif 16 + 17 + 18 + 4 19 5 20 " Ignore files 6 21 set wildignore+=*.pyc ··· 13 28 set ignorecase 14 29 set incsearch 15 30 16 - syntax enable " Enables syntax highlighing 31 + syntax enable "done in onedark.vim Enables syntax highlighing 17 32 set smartcase 18 33 set conceallevel=0 " So that I can see `` in markdown files 19 34 set tabstop=2 " Insert 2 spaces for a tab ··· 30 45 set hidden " Required to keep multiple buffers open multiple buffers 31 46 32 47 "general 33 - "colorscheme onedark 34 48 let mapleader = "\<Space>" 35 49 inoremap jk <ESC> 36 50 inoremap kj <Esc> 37 51 filetype plugin indent on 38 - set clipboard=unnamedplus " Copy paste between vim and everything else 52 + set clipboard=unnamedplus " Copy paste between vim and everything else -> inserts all into system clipboard 53 + noremap <Leader>ca ggVG"*y " Copy all in file to system clipboard 39 54 40 55 set ruler " show the cursor position all the time 41 56 set showcmd " display incomplete commands ··· 46 61 set relativenumber 47 62 48 63 " Easy CAPS 49 - inoremap <c-u> <ESC>viwUi 50 - nnoremap <c-u> viwU<Esc> 64 + "inoremap <c-u> <ESC>viwUi 65 + "nnoremap <c-u> viwU<Esc> 51 66 52 67 " Alternate way to save 53 68 nnoremap <C-s> :w<CR> ··· 102 117 Plug 'vim-airline/vim-airline' 103 118 Plug 'joshdick/onedark.vim' 104 119 Plug 'sheerun/vim-polyglot' 120 + Plug 'gruvbox-community/gruvbox' 105 121 106 122 Plug 'christoomey/vim-system-copy' 107 123 "Plug 'valloric/youcompleteme' ··· 128 144 "cusotm stuff just for neovim 129 145 source $HOME/.config/nvim/themes/airline.vim 130 146 source $HOME/.config/nvim/themes/onedark.vim 147 + "syntax on 148 + ""Gruvbox: 149 + "colorscheme gruvbox 150 + "set bg=dark 151 + ""let g:gruvbox_contrast_dark = 'hard' 152 + 131 153 132 154 au! BufWritePost $MYVIMRC source % " auto source when writing to init.vm alternatively you can run :source $MYVIMRC