aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-12-28 00:11:10 +0800
committerjdhao <jdhao@hotmail.com>2021-12-28 00:11:10 +0800
commit85de00f3746fb24f6037788a13de891ae272f9ac (patch)
tree96a3bd5c193f1dceb5437e08b6c708c90a35eb26
parent9adc3fdf16afe15171d5130721fa929be8b6f8d9 (diff)
refactor: resume edit position --> resume cursor position
-rw-r--r--core/autocommands.vim10
-rw-r--r--spell/en.utf-8.add10
2 files changed, 15 insertions, 5 deletions
diff --git a/core/autocommands.vim b/core/autocommands.vim
index 812aeda..6f08a90 100644
--- a/core/autocommands.vim
+++ b/core/autocommands.vim
@@ -19,14 +19,14 @@ augroup accurate_syn_highlight
autocmd BufEnter * :syntax sync fromstart
augroup END
-" Return to last edit position when opening a file
-augroup resume_edit_position
+" Return to last cursor position when opening a file
+augroup resume_cursor_position
autocmd!
- autocmd BufReadPost * call s:resume_edit_pos()
+ autocmd BufReadPost * call s:resume_cursor_position()
augroup END
-" Only resume last edit position when there is no go-to-line command (something like '+23').
-function s:resume_edit_pos() abort
+" Only resume last cursor position when there is no go-to-line command (something like '+23').
+function s:resume_cursor_position() abort
if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit'
let l:args = v:argv " command line arguments
for l:cur_arg in l:args
diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add
index 468ec54..42b83d9 100644
--- a/spell/en.utf-8.add
+++ b/spell/en.utf-8.add
@@ -345,3 +345,13 @@ teardown
github
fastgit
EOL
+PyCharm
+deduplication
+STL
+delimitMate
+lspconfig
+lualine
+Keymap
+iCloud
+keyframe
+maskRCNN