You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
830 B
28 lines
830 B
2 years ago
|
" Temporary configuration for editing Nix files
|
||
2 years ago
|
syntax on set autoindent set expandtab
|
||
2 years ago
|
set tabstop=2
|
||
|
set shiftwidth=2
|
||
|
|
||
|
" Shortcutting split navigation
|
||
|
map <C-h> <C-w>h
|
||
|
map <C-j> <C-w>j
|
||
|
map <C-k> <C-w>k
|
||
|
map <C-l> <C-w>l
|
||
2 years ago
|
|
||
2 years ago
|
" v for vertical, s for side-by-side
|
||
2 years ago
|
map <C-w>v :split<CR>
|
||
2 years ago
|
map <C-w>s :vsplit<CR>
|
||
2 years ago
|
|
||
|
" Use system clipboard
|
||
|
set clipboard+=unnamedplus
|
||
2 years ago
|
|
||
|
" Markdown configuration
|
||
2 years ago
|
autocmd FileType markdown setlocal spell spelllang+=cjk linebreak expandtab
|
||
|
let g:vim_markdown_fenced_languages = ['rs=rust', 'RS=rust'] " https://github.com/preservim/vim-markdown/issues/618
|
||
|
let g:vim_markdown_frontmatter = 1
|
||
|
|
||
|
" Tegaki Tuesday formatting
|
||
|
autocmd BufRead,BufNewFile */tegakituesday.com/content/** set formatoptions-=r
|
||
|
" prevent automatically adding new hyphen on enter, though causes some issues
|
||
|
" https://stackoverflow.com/a/4896097
|