diff options
Diffstat (limited to 'vim/.vim/vimrc')
| -rw-r--r-- | vim/.vim/vimrc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index 1dc1e2e..3c83b4d 100644 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc | |||
| @@ -13,18 +13,6 @@ let mapleader=" " | |||
| 13 | syntax on | 13 | syntax on |
| 14 | filetype plugin indent on | 14 | filetype plugin indent on |
| 15 | 15 | ||
| 16 | " Set colorscheme when the terminal has 256 color support | ||
| 17 | try | ||
| 18 | if (&t_Co == 256) && match($TERM, "256color") >= 0 | ||
| 19 | autocmd ColorScheme janah highlight Normal ctermbg=235 | ||
| 20 | colorscheme janah | ||
| 21 | else | ||
| 22 | throw "nocolor" | ||
| 23 | endif | ||
| 24 | catch | ||
| 25 | colorscheme desert | ||
| 26 | endtry | ||
| 27 | |||
| 28 | " Some vim settings | 16 | " Some vim settings |
| 29 | set number | 17 | set number |
| 30 | set relativenumber | 18 | set relativenumber |
| @@ -37,6 +25,18 @@ set scrolloff=1 | |||
| 37 | set backspace=indent,eol,start | 25 | set backspace=indent,eol,start |
| 38 | set cursorline | 26 | set cursorline |
| 39 | 27 | ||
| 28 | " Set colorscheme when the terminal has 256 color support | ||
| 29 | try | ||
| 30 | if (&t_Co == 256) && match($TERM, "256color") >= 0 | ||
| 31 | autocmd ColorScheme janah highlight Normal ctermbg=235 | ||
| 32 | colorscheme janah | ||
| 33 | else | ||
| 34 | throw "nocolor" | ||
| 35 | endif | ||
| 36 | catch | ||
| 37 | colorscheme desert | ||
| 38 | endtry | ||
| 39 | |||
| 40 | " Search-related things | 40 | " Search-related things |
| 41 | set hlsearch "highlight search result | 41 | set hlsearch "highlight search result |
| 42 | set incsearch " incremental search | 42 | set incsearch " incremental search |
