Compare commits

..

No commits in common. "66b2c29137bfe2fdc086fda0972de819071589fc" and "58c1b6cbd8236cae6980f137d5669941f2c6a6ab" have entirely different histories.

8 changed files with 19 additions and 47 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
backup/
swap/
undo/
.netrwhist

4
.netrwhist Normal file
View File

@ -0,0 +1,4 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =2
let g:netrw_dirhist_2='C:/Program Files/Vim'
let g:netrw_dirhist_1='C:/Program Files/Vim/vim91'

21
LICENSE
View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2024 wunewww
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,21 +1,21 @@
# simvim
# vimfiles
This is wuniu's vim profiles which is simple and like to vim original
experience.
Note below describes some interesting tricks.
This is wuniu's vim settings. This file describes wuniu's editing experience.
## Load Sequence
1. vimrc and scripts are triggered by vimrc
1. plugins under `plugins/` and scripts triggered by them
1. packs under `pack/plugin/start/` and etc.
1. plugins under `after/plugins/` and etc.
## Generate Doc
After installing / adding a new pack with `doc/` inside. Generate doc tags
using `packloadall | silent! helptags ALL`, which will regenerate all tags of docs.
[link]
## Reloading `vimrc` File
After editing vimrc file, one can execute it by `:so $MYVIMRC`. But this will

4
ftplugin/markdown.vim Normal file
View File

@ -0,0 +1,4 @@
" markdown filetype setttings
"
" ale fixer and lsp etc.
let b:ale_fixers = ['pandoc', 'remove_trailing_lines', 'trim_whitespace']

View File

@ -54,8 +54,8 @@ if &shell =~# 'fish$'
endif
if has('win32')
" set shell=pwsh.exe
" set shellcmdflag=-nop\ -c
set shell=pwsh.exe
set shellcmdflag=-nop\ -c
endif
" Put all temporary files under the same directory.

View File

@ -1,12 +1,12 @@
" This is special settings for vim-gui.
"
if has("gui_running")
if has("gui_macvim")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=CaskaydiaMono\ NFM:h12
else
set guifont=Inconsolata\ Nerd\ Font\ 12
endif
set go-=T
set go-=m

View File

@ -3,7 +3,6 @@
"
" You should not turn this setting on if you wish to use ALE as a completion
" source for other completion plugins, like Deoplete.
packadd! ale
" Enable ale completion
@ -15,17 +14,4 @@ let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\}
" fix when save
let g:ale_fix_on_save=1
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)
nmap gh <Plug>(ale_hover)
nmap <leader>d <Plug>(ale_detail)
nmap <leader>x <Plug>(ale_fix)
nmap <leader>g <Plug>(ale_go_to_definition_in_tab)
nmap <leader>r <Plug>(ale_find_references)
let g:ale_floating_preview=1
let g:ale_floating_window_border=['│', '─', '╭', '╮', '╯', '╰', '│', '─']
let g:ale_hover_to_floating_preview=1
let g:ale_fix_on_save = 1