Commit Graph

203 Commits

Author SHA1 Message Date
Talia 917a8e63d5 Add Ctrl-h and Ctrl-l to skip words 2019-02-01 10:59:48 +01:00
Talia 0c7f600d01 Attempt to fix clipboard reset on vim exit 2018-12-11 09:20:10 +01:00
Talia 33bcca2da5 Add leader-< mapping to enclose text with < and > 2018-11-29 09:17:31 +01:00
Talia 372f6c2d7e Improve Shift-R substitution
Shift-R now captures the original word so it can be used in the
substitution pattern and type less.
2018-11-28 09:17:20 +01:00
Talia 3adf4c36ef Moved vim git stuff to new file 2018-11-19 16:34:37 +01:00
Talia a51b6d43dc vim gitcompare to the right 2018-10-30 16:13:59 +01:00
Talia 2f5d0bc253 Fix exe_prg in vimrc 2018-10-20 10:23:16 +02:00
Talia ee7ace35d9 Fix auto-enclosing with brackets, quote marks, etc. 2018-10-19 14:59:53 +02:00
Talia e7bdaf0e79 Change vimrc Scratch command to use enew
Scratch now changes the current window, instead of opening a new one.
2018-10-15 10:08:53 +02:00
Talia 64e4e304f8 Fix edge case in vimrc Number command
At exact powers of 10, the command would use one less digit than needed.
2018-10-15 10:07:05 +02:00
Talia 1ad2b3ee6b Add Markdown-specific settings to vimrc 2018-10-08 11:32:55 +02:00
Talia 1907290b34 Added back linebreak in vimrc
Turns out I was wrong about what this thing does tehe~
2018-10-08 11:13:37 +02:00
Talia 3d28bea6ea Add Modifiable vim command 2018-10-08 09:57:43 +02:00
Talia 16e6437b02 Fix lua search path in vim
This time for real (hopefully)
2018-10-08 09:13:49 +02:00
Talia 183ba2ee0c Remove linebreak option from vimrc 2018-10-08 09:13:03 +02:00
Talia 7c8cb5df9a Merge branch 'master' of https://github.com/DarkWiiPlayer/darkrc 2018-09-26 09:46:09 +02:00
Talia 8232faf5b9 Remove second shiftwidth statement in vimrc 2018-09-25 14:35:34 +02:00
Talia 45f301f8d3 Fixed global <F5> 2018-09-22 12:33:27 +02:00
Talia 49936dde31 Added global <F5> 2018-09-22 12:31:57 +02:00
Talia a74637fa79 Fix lua path to 5.3 2018-09-09 16:41:20 +02:00
Talia e0c2d933a3 Fix mappings for vim files being global
<leader>c and <leader>if are now buffer-specific :)
2018-08-23 11:01:45 +02:00
Talia 217cd1fb31 Add List command
Searches for a pattern and adds all occurrences to the location list
2018-08-23 10:58:18 +02:00
Talia 70e2149f81 Merge remote-tracking branch 'origin/master' 2018-08-15 10:32:04 +02:00
Talia 0538cb57e8 Fix line-numbering using wrong length for numbers 2018-08-15 09:33:46 +02:00
Talia 883685a0ab Merge branch 'master' of github.com:DarkWiiPlayer/darkrc 2018-08-02 18:44:46 +02:00
Talia 0c262e8aa1 Add LuaCompile command that lists lua bytecode 2018-08-02 16:11:54 +02:00
Talia 60cd1be59c Change git banner to a greek temple
Because git deserves no less than a greek temple.
2018-08-02 14:08:27 +02:00
Talia 18c8d88351 Add gitroot function and some error checking 2018-08-02 13:51:17 +02:00
Talia b818fbf132 Add Number command that adds line numbers 2018-08-02 13:49:05 +02:00
Talia d3ccd7e0e6 Set 'shiftwidth' and 'softtabstop' to 0 2018-08-01 14:53:37 +02:00
Talia 5e150d5b81 Add GitRoot command 2018-08-01 14:52:48 +02:00
Talia 5dd8daf460 Add automoon feature
Automatically compile moonscript into lua when a .moon file is saved and
a global and/or buffer-local variable is defined.
2018-07-25 10:11:54 +02:00
Talia 7a3be20539 Fix word under cursor updating on toggle 2018-07-18 10:47:09 +02:00
Talia 81f3c385dc Merge branch 'master' of github.com:DarkWiiPlayer/darkrc 2018-07-13 21:05:43 +02:00
Talia f39b3fe5c0 Change lua search path 2018-07-13 21:05:04 +02:00
Talia b817b4be7b Add Blame command
This command allows to quickly git-blame the current file.
2018-07-13 11:25:22 +02:00
Talia c7bd7c2c3c Add Tempfile command and change modeline 2018-05-23 09:38:47 +02:00
Talia 5f7a6f7ae8 Add text snippets commands 2018-05-11 08:19:32 +02:00
Talia 6447dc5fa1 Add Count command that counts lines 2018-04-25 10:53:27 +02:00
Talia 776be82020 (hopefully) Fix lua search path 2018-04-25 09:41:36 +02:00
Talia b65951d14b Add <leader>[m|M] for listing active marks 2018-04-25 09:39:55 +02:00
Talia 9b80505c05 Make Ctrl+D work with visual selection 2018-04-13 09:20:43 +02:00
Talia 3fbf78a105 Fixed caching error in git_history 2018-04-12 14:18:29 +02:00
Talia 9aed3c09c9 Fix checking out files in subdirectories 2018-04-12 14:02:10 +02:00
Talia f86a4aeb9b Reset j and k bindings to jump entire lines 2018-04-12 13:11:33 +02:00
Talia 549a0be0b4 Remove --follow from git commands 2018-04-12 10:27:49 +02:00
Talia f57de95ef2 Fix GitCompare on file to use HEAD
Forgot vimscript starts indexing at 0 tehe~
2018-04-12 10:17:54 +02:00
Talia 25413fc9a2 Fix git_diff to use last commit hash 2018-04-12 10:14:24 +02:00
Talia 7aa2ac0433 Improve output of GitCompare 2018-04-12 10:14:21 +02:00
Talia 9108000b77 Make GitCompare the one ring to compare them all 2018-04-12 10:13:48 +02:00
Talia 6d8b1a41d2 Change git_diff() to cache results for 10 seconds 2018-04-12 09:38:32 +02:00
Talia 6d1d2a3709 Redo Uncommitted command to use file_at_revision() 2018-04-12 08:59:04 +02:00
Talia d547733432 Change file_at_revision to set bufhidden=delete 2018-04-12 08:44:52 +02:00
Talia 2735e3ab59 Make file_at_revision() preserve cursor position
note that this may still change the cursor position due to deletions
and insertions further up in the file, but now the cursor should at
least end up somewhere near its original position for smaller commits.
2018-04-12 08:40:52 +02:00
Talia 04eb8d6828 Add git history commands
- GitFirst check out first revision of the file into new buffer
- GitLast same but last revision
- GitNext jump to the next revision of a file
- GitPrevious same but previous
  Only commits that modified the file are considered
- GitInfo shows commit information about the current revision
2018-04-12 08:40:48 +02:00
Talia 02f2747c9e Add leader+n, leader+p to move in arglist
leader+n moves to the [N]ext buffer in the arg list
leader+p moves to the [P]revious buffer in the arg list
as simple as that ;)
2018-04-12 08:40:46 +02:00
Talia c61240c532 Make Hex command more robust
Hex command now infers more meaning from context.
2018-04-12 08:40:17 +02:00
Talia 2c6b686107 did stuff 2018-03-15 16:30:57 +01:00
Talia d4b5eaedf0 Added ruby "Members" and renamed "Defines"
- "Defines "is now called "Methods" (which was previously just an alias)
- There is no alias for "Defines"
- Members simply shows all the keywords starting with @ in the file
2018-03-13 09:55:01 +01:00
Talia 3679c04e54 Merge branch 'master' of https://github.com/DarkWiiPlayer/darkrc 2018-03-12 16:38:52 +01:00
Talia 3d427643bb Further improved visual-execute
- Now also works in insert mode with <C-Space> (only current line)
- Made vim.column more robust and added col alias
2018-03-12 09:30:49 +01:00
Talia b4f29b49f9 Fixed visual-execute for linux 2018-03-09 14:57:04 +01:00
Talia d36e470044 Fixed Mooncompile Command 2018-03-09 14:11:26 +01:00
Talia 37bdfddcd7 Lua + Improved visual-exec = ♥
changes ─┐
         ├─ Added a folder for lua / moonscript
         ├─┬─ VISUAL-EXEC BINDINGS
         │ ├─ Visual-Enter now tries running as moonscript
         │ └─ Visual-C-Enter tries running as vim command
         ├─ Added Mooncompile command (compiles moonscript in lua folder)
         ├─ Added vim.moon which does nice things :)
         └─┬─ VIM.MOON
           ├─ tree: builds a tree like this one
           ├─ clumn: draws a table-column (useful for class diagrams)
           └─ draw: prints some drawing symbols
2018-03-09 13:54:37 +01:00
Talia f4d8aae4b1 Set default fold method to marker 2018-03-09 11:56:15 +01:00
Talia e5c7c9909d visual-execute works differently now
- Ctrl+Enter -> execute g:exe_prg
- Enter -> execute b:exe_prg
- b:exe_prg is initialized to g:exe_prg by default
2018-03-07 12:52:24 +01:00
Talia c17d5895e6 Added visual-execute
- (visual)Enter to run the selected text as a vim command
- (visual)C+Enter to run the selected text with g:exe_prg
- g:exe_prg should be defined in a local vimrc
2018-03-07 12:44:04 +01:00
Talia 05c6716944 Fixed + improved autosave stuff 2018-02-20 14:17:02 +01:00
Talia 05579eaa8c Improved Autosave 2018-02-15 09:08:13 +01:00
Talia f66850906b Added Uncommitted feature
- Shows uncommitted changes in the current file, including unsaved ones
2018-02-09 14:31:44 +01:00
Talia 3f107275e1 Fixed indentation from mixed to tabs 2018-02-09 08:37:48 +01:00
Talia 171b571938 Made Ctrl-s even more annoying ;) 2018-02-09 08:35:33 +01:00
Talia 434be3251f General Improvements 2018-02-09 08:31:25 +01:00
Talia 2505b7abef Merged in remote changes from github 2018-02-01 09:05:51 +01:00
Talia e016daaf29 Improved autosave + added save prompt
- Auto-save now triggers when nothing is typed for a while
- Pressing C+s now asks the user to type "save"
2018-02-01 09:02:38 +01:00
Talia 2e61676106 Fixed Scratch command 2018-01-31 16:53:24 +01:00
Talia 50e9538394 Added scratch command 2018-01-31 16:29:22 +01:00
Talia 62e5b316de fixed cryptmethod choice 2018-01-31 08:17:19 +01:00
Talia a041c4deb7 tiny fix for unsaved command 2018-01-30 22:15:34 +01:00
Talia 855b52e578 Fixed snapshot 2018-01-30 19:25:08 +01:00
Talia 00a5a359c6 improved enter in normal mode 2018-01-30 19:22:35 +01:00
Talia 2468075090 Added 'snapshot' command 2018-01-30 19:21:50 +01:00
Talia d92a7c0bfb fixed enter in normal mode when nomodifiable 2018-01-30 19:12:36 +01:00
Talia 3e28a6b265 Improved unsaved command 2018-01-30 19:12:00 +01:00
Talia d88106da00 Fixed enter in normal mode 2018-01-30 19:04:09 +01:00
Talia 93b5927968 Improved unsaved 2018-01-30 16:38:39 +01:00
Talia 20aa8c1916 Unsaved and Hex commands 2018-01-30 10:47:42 +01:00
Talia c169c1e2fd slightly improved autosave 2018-01-15 19:43:18 +01:00
Talia 21a466fbd4 Removed ruby expandtab stuff 2018-01-08 10:50:30 +01:00
Talia 5ad0ba7fa9 Added `setl number` to most file types 2018-01-03 14:20:23 +01:00
Talia 20ff99ad55 removed relativenumber 2018-01-03 14:17:55 +01:00
Talia 91c31e88ca Enable Blowfish 2 when available 2017-12-19 16:24:58 +01:00
Talia 558a474a8f Added double space inside auto-close pairs 2017-12-19 15:57:18 +01:00
Talia 33cdbc0995 Moved cursorline option to gvimrc 2017-12-19 15:46:02 +01:00
Talia 70be955b0a Small Improvement 2017-12-18 11:02:12 +01:00
Talia 1b828ace39 Did Stuff 2017-11-16 16:34:43 +01:00
Talia bbf97daec6 Mostly window width/height stuff
* Default is now equal distribution, as I was using windows for what
tabs are usually for.
* Vim 8.0 indentation features are now used when available
2017-11-16 14:09:18 +01:00
Talia 28709c0cf9 Switched <leader>[ and <leader>] 2017-11-16 11:19:42 +01:00
Talia ece9647757 Removed <C-q> because accidents happen 2017-11-13 18:34:19 +01:00
Talia b9f51cd5b4 Improved autoclose + new mappings
* Autoclose now does pairs of the same character, like "" or ``
* New mappings for surrounding visual selection with opening/closing pairs
2017-11-13 16:00:55 +01:00