SHOW:
|
|
- or go back to the newest paste.
1 | - | " run pathogen |
1 | + | " run pathogen |
2 | - | execute pathogen#infect() |
2 | + | execute pathogen#infect() |
3 | - | |
3 | + | |
4 | - | " Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged) |
4 | + | " Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged) |
5 | - | call plug#begin('~/.vim/plugged') |
5 | + | call plug#begin('~/.vim/plugged') |
6 | - | |
6 | + | |
7 | - | " Specifiy vim-plug plugins |
7 | + | " Specifiy vim-plug plugins |
8 | - | Plug '/usr/local/opt/fzf' | Plug 'junegunn/fzf.vim' |
8 | + | Plug '/usr/local/opt/fzf' | Plug 'junegunn/fzf.vim' |
9 | - | |
9 | + | |
10 | - | " wut? |
10 | + | " wut? |
11 | - | set nocompatible " be iMproved, required |
11 | + | set nocompatible " be iMproved, required |
12 | - | filetype off " required |
12 | + | filetype off " required |
13 | - | |
13 | + | |
14 | - | " configure gutter |
14 | + | " configure gutter |
15 | - | set number |
15 | + | set number |
16 | - | :set numberwidth=3 |
16 | + | :set numberwidth=3 |
17 | - | :highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE |
17 | + | :highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE |
18 | - | |
18 | + | |
19 | - | " configure syntax highlighting |
19 | + | " configure syntax highlighting |
20 | - | filetype plugin indent on |
20 | + | filetype plugin indent on |
21 | - | syntax on |
21 | + | syntax on |
22 | - | "colorscheme distinguished |
22 | + | "colorscheme distinguished |
23 | - | |
23 | + | |
24 | - | " Folding Settings |
24 | + | " Folding Settings |
25 | - | set foldmethod=indent "fold based on indent |
25 | + | set foldmethod=indent "fold based on indent |
26 | - | set foldnestmax=10 "deepest fold is 10 levels |
26 | + | set foldnestmax=10 "deepest fold is 10 levels |
27 | - | set nofoldenable "dont fold by default |
27 | + | set nofoldenable "dont fold by default |
28 | - | set foldlevel=2 "this is just what i use |
28 | + | set foldlevel=2 "this is just what i use |
29 | - | |
29 | + | |
30 | - | " Set tab size |
30 | + | " Set tab size |
31 | - | set expandtab |
31 | + | set expandtab |
32 | - | set shiftwidth=4 |
32 | + | set shiftwidth=4 |
33 | - | set softtabstop=4 |
33 | + | set softtabstop=4 |
34 | - | |
34 | + | |
35 | - | " map to system clipboard |
35 | + | " map to system clipboard |
36 | - | set clipboard=unnamed |
36 | + | set clipboard=unnamed |
37 | - | |
37 | + | |
38 | - | " open NERDTree by default |
38 | + | " open NERDTree by default |
39 | - | autocmd vimenter * NERDTree |
39 | + | autocmd vimenter * NERDTree |
40 | - | let NERDTreeShowHidden=1 |
40 | + | let NERDTreeShowHidden=1 |
41 | - | |
41 | + | |
42 | - | " map NERDTree commands |
42 | + | " map NERDTree commands |
43 | - | map <C-c> :NERDTreeToggle<CR> |
43 | + | map <C-c> :NERDTreeToggle<CR> |
44 | - | |
44 | + | |
45 | - | " close NERDTree if last window |
45 | + | " close NERDTree if last window |
46 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |