-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
31 lines (23 loc) · 753 Bytes
/
.vimrc
File metadata and controls
31 lines (23 loc) · 753 Bytes
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
scriptencoding utf-8
set encoding=utf-8
syntax enable
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
let g:javascript_plugin_jsdoc = 1
set ruler
set hlsearch
" ignore case in searches unless we search with some capital letters
set ignorecase
set smartcase
" Allow // to search for the visually selected block
" via http://vim.wikia.com/wiki/Search_for_visually_selected_text
vnoremap // y/\V<C-r>=escape(@",'/\')<CR><CR>
" Show tab characters and trailing spaces
set list
" Use \u27F6 (long rightwards arrow) for tabs
" And \u2038 (caret) for trailing spaces
set listchars=tab:⟶\ ,trail:‸
" Turn on linting for javascript
au BufRead,BufNewFile *.ts set filetype=javascript
let g:ale_linters = {
\ 'javascript': ['eslint']
\}