-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.vim
98 lines (90 loc) · 4.31 KB
/
settings.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
autocmd FocusLost * silent! wall
set spell
" set spelllang=en-us
" exec current python file code in neovim
" nnoremap <leader>y :exec '!python3' shellescape(@%, 1)<CR>
" nnoremap , :vs <CR> :term python3 % <CR>
" let g:user_emmet_expandabbr_key='<C-;>'
" set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:»
" set list
aug i3config_ft_detection
au!
au BufNewFile,BufRead /home/serii/xubuntu/i3/config set filetype=i3config
au BufNewFile,BufRead /home/serii/xubuntu/i3/autostart set filetype=i3config
au BufNewFile,BufRead /home/serii/xubuntu/i3/keyboard set filetype=i3config
au BufNewFile,BufRead /home/serii/xubuntu/i3/window-rules set filetype=i3config
au BufNewFile,BufRead /home/serii/xubuntu/i3/workspaces set filetype=i3config
au BufNewFile,BufRead /home/serii/xubuntu/i3status/config set filetype=i3config
aug end
"Disable
let g:loaded_perl_provider = 0
let g:loaded_ruby_provider = 0
hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
set spellfile=~/.config/nvim/spell/en.utf-8.add
let g:sneak#label = 1
" set leader key
let g:mapleader = "\<Space>"
let g:indent_guides_enable_on_vim_startup = 1
" let g:config.health.checker = 0
" set nolazyredraw
set textwidth=0 wrapmargin=0
set noswapfile
set foldmethod=indent
set foldnestmax=20
set foldlevelstart=99
filetype plugin on
" set nofoldenable
set foldlevel=99
set lazyredraw " macros repeat
set encoding=utf-8
set nobackup
set nowritebackup
set updatetime=300
set signcolumn=yes
syntax enable " Enables syntax highlighing
set hidden " Required to keep multiple buffers open multiple buffers
set scrolloff=20 " Required to keep multiple buffers open multiple buffers
set inccommand=nosplit
set nowrap " Display long lines as just one line
set textwidth=0
set wrapmargin=0
set undofile
" set autoread=1
set encoding=utf-8 " The encoding displayed
set pumheight=10 " Makes popup menu smaller
set fileencoding=utf-8 " The encoding written to file
set ruler " Show the cursor position all the time
set cmdheight=1 " More space for displaying messages
set iskeyword+=- " treat dash separated words as a word text object"
set mouse=a " Enable your mouse
set splitbelow " Horizontal splits will automatically be below
set splitright " Vertical splits will automatically be to the right
set t_Co=256 " Support 256 colors
set conceallevel=0 " So that I can see `` in markdown files
set tabstop=2 " Insert 2 spaces for a tab
set shiftwidth=2 " Change the number of space characters inserted for indentation
set smarttab " Makes tabbing smarter will realize you have 2 vs 4
set expandtab " Converts tabs to spaces
set smartindent " Makes indenting smart
set autoindent " Good auto indent
set smartindent
filetype plugin indent on
set laststatus=0 " Always display the status line
set number " Line numbers
set cursorline " Enable highlighting of the current line
set cursorcolumn " Enable highlighting of the current line
set background=dark " tell vim what the background color looks like
set showtabline=2 " Always show tabs
set noshowmode " We don't need to see things like -- INSERT -- anymore
set nobackup " This is recommended by coc
set nowritebackup " This is recommended by coc
set updatetime=300 " Faster completion
set timeoutlen=500 " By default timeoutlen is 1000 ms
set formatoptions-=cro " Stop newline continution of comments
set relativenumber
autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set relativenumber
set clipboard=unnamedplus " Copy paste between vim and everything else
let g:coc_filetype_map = {
\ 'pug': 'jade',
\ }