add support for reloading the current file
This commit is contained in:
5
Makefile
5
Makefile
@@ -26,3 +26,8 @@ clean:
|
|||||||
.PHONY: test.txt
|
.PHONY: test.txt
|
||||||
test.txt:
|
test.txt:
|
||||||
cp test.txt.bak $@
|
cp test.txt.bak $@
|
||||||
|
|
||||||
|
.PHONY: gdb
|
||||||
|
gdb:
|
||||||
|
@test -f $(TARGET).pid || (echo "error: $(TARGET).pid not found" >&2; exit 1)
|
||||||
|
@gdb -p $$(cat $(TARGET).pid | tr -d ' \t\n\r') ./$(TARGET)
|
||||||
|
|||||||
9
ke.1
9
ke.1
@@ -40,12 +40,19 @@ Edit a new file. Also C-k C-e.
|
|||||||
Incremental find.
|
Incremental find.
|
||||||
.It C-k g
|
.It C-k g
|
||||||
Go to a specific line.
|
Go to a specific line.
|
||||||
|
.It C-k j
|
||||||
|
Jump to the mark.
|
||||||
.It C-k l
|
.It C-k l
|
||||||
List the number of lines of code in a saved file.
|
List the number of lines of code in a saved file.
|
||||||
.It C-k m
|
.It C-k m
|
||||||
Run make(1).
|
Run make(1).
|
||||||
.It C-k q
|
.It C-k q
|
||||||
exit the editor. Also C-k C-q.
|
Exit the editor. If the file has unsaved changes,
|
||||||
|
a warning will be printed; a second C-k q will exit.
|
||||||
|
.It C-k C-q
|
||||||
|
Immediately exit the editor.
|
||||||
|
.It C-k C-r
|
||||||
|
Reload the current buffer from disk.
|
||||||
.It C-k s
|
.It C-k s
|
||||||
save the file, prompting for a filename if needed. Also C-k C-s.
|
save the file, prompting for a filename if needed. Also C-k C-s.
|
||||||
.It C-k x
|
.It C-k x
|
||||||
|
|||||||
Reference in New Issue
Block a user